import React, { Component } from 'react'

export default class App extends Component {
  handleAClick = (e)=> {
    console.log(e)
    e.preventDefault()
  }
  render() {
    return (
      <div>
        <a href='http://www.baidu.com' onClick={this.handleAClick}>百度</a>
      </div>
    )
  }
}
